﻿<Page x:Class="Epi.Web.SurveyManager.Client.Page_Publish"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
      d:DesignHeight="804" d:DesignWidth="650"
	Title="Page_Publish">
<ScrollViewer HorizontalScrollBarVisibility="Auto">
    <Grid Height="807" Width="642">
        <Grid.RowDefinitions>
            <RowDefinition Height="6*" />
            <RowDefinition Height="284*" />
            <RowDefinition Height="330*" />
            <RowDefinition Height="2*" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="20*" />
            <ColumnDefinition Width="68*" />
            <ColumnDefinition Width="82*" />
            <ColumnDefinition Width="114*" />
            <ColumnDefinition Width="347*" />
        </Grid.ColumnDefinitions>
        <Button Content="Submit Request" Height="29" HorizontalAlignment="Left" Margin="204.398,119,0,0" Name="SubmitRequestButton" VerticalAlignment="Top" Width="120" Grid.Column="4" Uid="" Click="SubmitRequestButton_Click" Grid.Row="2" d:LayoutOverrides="VerticalAlignment" Panel.ZIndex="1" />
        <Label Content="Service Response:" Height="30" HorizontalAlignment="Left" Margin="19,180,0,0" Name="label1" VerticalAlignment="Top" Width="124" Grid.Column="1" Grid.Row="2" FontWeight="Bold" Grid.ColumnSpan="2" />
        <RichTextBox Grid.Column="1" HorizontalAlignment="Left" Margin="19,207,0,131" Name="ServiceResponseTextBox" Width="588" Uid="ServiceResponse" Grid.ColumnSpan="4" Grid.Row="2" VerticalScrollBarVisibility="Visible" />
        <Button Content="View Download Client" Grid.Column="1" Grid.ColumnSpan="2" Grid.Row="1" Height="30" HorizontalAlignment="Left" Margin="17,0,0,0" Name="button1" VerticalAlignment="Top" Width="134" Click="button1_Click_1" />
        <GroupBox Grid.RowSpan="2" Height="508" HorizontalAlignment="Left" Name="groupBox1" VerticalAlignment="Top" Width="592" Grid.ColumnSpan="4" Grid.Column="1" Margin="18,34,0,0" Grid.Row="1" Background="#FFD8D6D5">
        	<GroupBox.Header>
        		<TextBlock Text="Survey Information" FontSize="13.333" FontWeight="Bold" />
			</GroupBox.Header>
            <Grid Height="484" Width="569">
                <Grid.RowDefinitions>
                    <RowDefinition Height="372*" />
                    <RowDefinition Height="0*" />
                    <RowDefinition Height="25*" />
                    <RowDefinition Height="24*" />
                    <RowDefinition Height="63*" />
                </Grid.RowDefinitions>
                <RichTextBox Height="32" HorizontalAlignment="Left" Margin="28,170,0,0" Name="TemplateXMLTextBox" VerticalAlignment="Top" Width="525" Uid="TemplatXML" VerticalScrollBarVisibility="Visible" />
                <TextBox Height="27" HorizontalAlignment="Left" Margin="309,25,0,0" Name="SurveyNumberTextBox" VerticalAlignment="Top" Width="240" Uid="SurveyNumber" Text="AE01-IOU" />
                <TextBox Height="25" HorizontalAlignment="Right" Margin="0,25,289,0" Name="SurveyNameTextBox" VerticalAlignment="Top" Width="252" Uid="SurveyName" Text="Survey1" />
                <TextBox Height="23" Margin="309,79,48,0" Name="DepartmentTextBox" VerticalAlignment="Top" Uid="DepartmentName" Text="Department1" />
                <TextBox Height="22" Margin="28,79,284,0" Name="OrganizationTextBox" VerticalAlignment="Top" Uid="OrganizationName" Text="Organization1" />
                <Label Content="Department Name" Height="23" HorizontalAlignment="Left" Margin="308,55,0,0" Name="label2" VerticalAlignment="Top" Width="112" />
                <Label Content="Organization Name" Height="24" HorizontalAlignment="Left" Margin="26,54,0,0" Name="label5" VerticalAlignment="Top" Width="126.993" />
                <Label Content="Survey Number" Height="24" HorizontalAlignment="Left" Margin="309,0,0,0" Name="label6" VerticalAlignment="Top" Width="106" />
                <Label Content="Template XML" Height="23" HorizontalAlignment="Left" Margin="25,141,0,0" Name="label8" VerticalAlignment="Top" Width="92.427" />
                <Label Content="Survey Name" Height="28" HorizontalAlignment="Left" Margin="27,2,0,0" Name="label15" VerticalAlignment="Top" />
                <CheckBox Content="Is Single Response?" Height="16" HorizontalAlignment="Left" Margin="30,114,0,0" Name="IsSingleResponseCheckBox" VerticalAlignment="Top" Uid="IsSingleResponse" />
                <RichTextBox Height="47" HorizontalAlignment="Left" Margin="28,237,0,0" Name="IntroductionTextBox" VerticalAlignment="Top" Width="525" Uid="IntroductionText" VerticalScrollBarVisibility="Visible" />
                <Label Content="Introduction Text" Height="28" HorizontalAlignment="Left" Margin="25,212,0,0" Name="label3" VerticalAlignment="Top" />
                <Label Content="Closing Date:" Height="28" HorizontalAlignment="Left" Margin="309,109,0,0" Name="label4" VerticalAlignment="Top" />
                <DatePicker Height="23" HorizontalAlignment="Left" Margin="394,110.331,0,0" Name="datePicker1" VerticalAlignment="Top" Width="156" />
                <Button Content="Find File..." Height="23" HorizontalAlignment="Left" Margin="129,142,0,0" Name="FindFileButton" VerticalAlignment="Top" Width="75" Click="FindFileButton_Click" />
                <Label Content="No Survey Template file is selected." Height="28" HorizontalAlignment="Left" Margin="210,140,0,0" Name="TemplateFileLabel" VerticalAlignment="Top" Width="343" Foreground="#FF787878" />
                <Button Content="Find File..." Height="23" HorizontalAlignment="Left" Margin="130,210,0,0" Name="FindIntroTextButton" VerticalAlignment="Top" Width="75" Click="FindIntroTextButton_Click" />
                <Label Content="No Intro Text File is selected." Height="28" HorizontalAlignment="Left" Margin="212,0,0,136" Name="IntroFileLabel" VerticalAlignment="Bottom" Width="338" Foreground="#FF787878" />
                <Button Content="." HorizontalAlignment="Left" Margin="558,171,0,170" Name="ClearTemplateButton" Width="11" Click="ClearTemplateButton_Click" />
                <Button Content="." Height="46.5" HorizontalAlignment="Left" Margin="557,237.5,0,0" Name="ClearIntroButton" VerticalAlignment="Top" Width="12" Click="ClearIntroButton_Click" />
                <Label Content="Exit Survey Text" Height="28" HorizontalAlignment="Left" Margin="25,294,0,0" Name="label7" VerticalAlignment="Top" />
                <Button Content="Find File..." Height="23" HorizontalAlignment="Left" Margin="130,294,0,0" Name="FindExtiTextButton" VerticalAlignment="Top" Width="75" Click="FindExtiTextButton_Click" />
                <Label Content="No Exit Text file is selected." Height="28" HorizontalAlignment="Left" Margin="215,292,0,0" Name="ExitTextLabel" VerticalAlignment="Top" Width="330" Foreground="#FF787878" />
                <RichTextBox Height="41" Margin="28,319,16,0" Name="ExitTextTextBox" VerticalAlignment="Top" VerticalScrollBarVisibility="Visible" />
                <Button Content="." Height="40" HorizontalAlignment="Left" Margin="557,320,0,0" Name="ClearExitTextButton" VerticalAlignment="Top" Width="12" Click="ClearExitTextButton_Click" />
                <Label Content="Label" Grid.Row="4" Height="28" HorizontalAlignment="Left" Margin="110,69,0,0" Name="label10" VerticalAlignment="Top" />
                <Label Content="Publish Key" Grid.Row="2" Height="28" HorizontalAlignment="Left" Margin="27,0,0,0" Name="lblPublishKey" VerticalAlignment="Top" Width="75" />
                <TextBox Grid.Row="2" Height="23" HorizontalAlignment="Left" Margin="103,0,0,0" Name="txtPublishKey" VerticalAlignment="Top" Width="368" />
                <Label Content="Organization Key" Grid.Row="4" Height="28" HorizontalAlignment="Left" Margin="25.5,-8,0,0" Name="label9" VerticalAlignment="Top" Width="107" />
                <PasswordBox Grid.Row="4" Height="23" HorizontalAlignment="Left" Margin="28,17,0,0" Name="passOrganizationKey" VerticalAlignment="Top" Width="366" />
                <Button Content="Generate" Grid.Row="2" Height="23" HorizontalAlignment="Left" Margin="484,0.331,0,0" Name="btnGeneratePublishkey" VerticalAlignment="Top" Width="65" Click="btnGeneratePublishkey_Click" />
            </Grid>
        </GroupBox>
        <Button Content="Open URL" Grid.Column="4" Grid.Row="2" Height="30" Margin="0,303,31.049,0" Name="OpenURLButton" VerticalAlignment="Top" Click="OpenURLButton_Click" IsEnabled="False" HorizontalAlignment="Right" Width="125" />
        <Button Content="Manage Existing Surveys" Grid.Column="3" Grid.Row="1" Height="30" HorizontalAlignment="Left" Margin="4,1,0,0" Name="ManageSurveyButton" VerticalAlignment="Top" Width="140" Grid.ColumnSpan="2" Click="ManageSurveyButton_Click" />
        <Button Content="Add User" Grid.Column="4" Grid.Row="1" Height="30" HorizontalAlignment="Left" Margin="40,0,0,0" Name="AddUser" VerticalAlignment="Top" Width="162" Click="AddUser_click" />
    </Grid>
    </ScrollViewer>
</Page>
